Optimal. Leaf size=71 \[ \frac {2 \cos \left (2 a-\frac {2 b c}{d}\right ) \text {Ci}\left (\frac {2 b c}{d}+2 b x\right )}{d}-\frac {2 \sin \left (2 a-\frac {2 b c}{d}\right ) \text {Si}\left (\frac {2 b c}{d}+2 b x\right )}{d}+\frac {\log (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4431, 3312, 3303, 3299, 3302} \[ \frac {2 \cos \left (2 a-\frac {2 b c}{d}\right ) \text {CosIntegral}\left (\frac {2 b c}{d}+2 b x\right )}{d}-\frac {2 \sin \left (2 a-\frac {2 b c}{d}\right ) \text {Si}\left (\frac {2 b c}{d}+2 b x\right )}{d}+\frac {\log (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3299
Rule 3302
Rule 3303
Rule 3312
Rule 4431
Rubi steps
\begin {align*} \int \frac {\csc (a+b x) \sin (3 a+3 b x)}{c+d x} \, dx &=\int \left (\frac {3 \cos ^2(a+b x)}{c+d x}-\frac {\sin ^2(a+b x)}{c+d x}\right ) \, dx\\ &=3 \int \frac {\cos ^2(a+b x)}{c+d x} \, dx-\int \frac {\sin ^2(a+b x)}{c+d x} \, dx\\ &=3 \int \left (\frac {1}{2 (c+d x)}+\frac {\cos (2 a+2 b x)}{2 (c+d x)}\right ) \, dx-\int \left (\frac {1}{2 (c+d x)}-\frac {\cos (2 a+2 b x)}{2 (c+d x)}\right ) \, dx\\ &=\frac {\log (c+d x)}{d}+\frac {1}{2} \int \frac {\cos (2 a+2 b x)}{c+d x} \, dx+\frac {3}{2} \int \frac {\cos (2 a+2 b x)}{c+d x} \, dx\\ &=\frac {\log (c+d x)}{d}+\frac {1}{2} \cos \left (2 a-\frac {2 b c}{d}\right ) \int \frac {\cos \left (\frac {2 b c}{d}+2 b x\right )}{c+d x} \, dx+\frac {1}{2} \left (3 \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {2 b c}{d}+2 b x\right )}{c+d x} \, dx-\frac {1}{2} \sin \left (2 a-\frac {2 b c}{d}\right ) \int \frac {\sin \left (\frac {2 b c}{d}+2 b x\right )}{c+d x} \, dx-\frac {1}{2} \left (3 \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {2 b c}{d}+2 b x\right )}{c+d x} \, dx\\ &=\frac {2 \cos \left (2 a-\frac {2 b c}{d}\right ) \text {Ci}\left (\frac {2 b c}{d}+2 b x\right )}{d}+\frac {\log (c+d x)}{d}-\frac {2 \sin \left (2 a-\frac {2 b c}{d}\right ) \text {Si}\left (\frac {2 b c}{d}+2 b x\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 63, normalized size = 0.89 \[ \frac {2 \cos \left (2 a-\frac {2 b c}{d}\right ) \text {Ci}\left (\frac {2 b (c+d x)}{d}\right )-2 \sin \left (2 a-\frac {2 b c}{d}\right ) \text {Si}\left (\frac {2 b (c+d x)}{d}\right )+\log (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 85, normalized size = 1.20 \[ \frac {{\left (\operatorname {Ci}\left (\frac {2 \, {\left (b d x + b c\right )}}{d}\right ) + \operatorname {Ci}\left (-\frac {2 \, {\left (b d x + b c\right )}}{d}\right )\right )} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - 2 \, \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {Si}\left (\frac {2 \, {\left (b d x + b c\right )}}{d}\right ) + \log \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.32, size = 1118, normalized size = 15.75 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 116, normalized size = 1.63 \[ -\frac {\ln \left (d x +c \right )}{d}+\frac {2 \Si \left (2 b x +2 a +\frac {-2 d a +2 c b}{d}\right ) \sin \left (\frac {-2 d a +2 c b}{d}\right )}{d}+\frac {2 \Ci \left (2 b x +2 a +\frac {-2 d a +2 c b}{d}\right ) \cos \left (\frac {-2 d a +2 c b}{d}\right )}{d}+\frac {2 \ln \left (\left (b x +a \right ) d -d a +c b \right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.41, size = 117, normalized size = 1.65 \[ -\frac {{\left (E_{1}\left (\frac {2 i \, b d x + 2 i \, b c}{d}\right ) + E_{1}\left (-\frac {2 i \, b d x + 2 i \, b c}{d}\right )\right )} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - {\left (i \, E_{1}\left (\frac {2 i \, b d x + 2 i \, b c}{d}\right ) - i \, E_{1}\left (-\frac {2 i \, b d x + 2 i \, b c}{d}\right )\right )} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - \log \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sin \left (3\,a+3\,b\,x\right )}{\sin \left (a+b\,x\right )\,\left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________